import dayjs from "dayjs";
export const sysOperLogColumns = [
    {
        prop: "id",
        label: "主键",
        width: "40px",
    },
    {
        prop: "source",
        label: "来源",
        width: "40px",
    },
    {
        prop: "title",
        label: "模块标题",
        width: "80px",
    },
    {
        prop: "businessType",
        label: "业务类型",
        width: "80px",
    },
    {
        prop: "method",
        label: "方法名称",
        width: "80px",
    },
    {
        prop: "operatorType",
        label: "操作类别",
        width: "80px",
    },
    {
        prop: "operName",
        label: "操作人员",
        width: "80px",
    },
    {
        prop: "deptName",
        label: "部门名称",
        width: "80px",
    },
    {
        prop: "operUrl",
        label: "请求URL",
        width: "70px",
    },
    {
        prop: "operIp",
        label: "主机地址",
        width: "80px",
    },
    {
        prop: "operLocation",
        label: "操作地点",
        width: "80px",
    },
    {
        prop: "status",
        label: "操作状态（0正常 1异常）",
        width: "230px",
    },

    {
        prop: "operTime",
        label: "操作时间",
        width: "80px",
        render(row: any) {
          return h(
            "div",
            {
              style: {
                color: "#666",
                fontSize: "12px",
              },
            },
            dayjs(row.date).format("YYYY-MM-DD HH:mm")
          );
        },
    },
    {
        prop: "staffType",
        label: "用户类型",
        width: "80px",
    },
    {
        prop: "operParam",
        label: "请求参数",
        width: "80px",
    },
    {
        prop: "errorMsg",
        label: "错误消息",
        width: "80px",
    }
];
